package com.apex.restful.domain;

import com.apex.restful.entity.TBsdtUserEvaluateServer;
import com.edu.orm.repository.CustomRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface UserEvaluateRepository extends CustomRepository<TBsdtUserEvaluateServer,Long> {

    @Query("select t from TBsdtUserEvaluateServer t where t.userid=:userid and t.serverId=:serverId")
    List<TBsdtUserEvaluateServer> findByUseridAndServerId(@Param("userid") String userid, @Param("serverId") Long serverId);
}
